package com.guigu.www.service.impl;

import com.guigu.www.pojo.Menu;
import com.guigu.www.mapper.MenuMapper;
import com.guigu.www.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author DengHao
 * @since 2021-10-20
 */
@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> showUserMenu(Integer roleId) {
        return menuMapper.showUserMenu(roleId);
    }
}
